package com.sora.sora.server.service;

import com.github.pagehelper.PageInfo;
import com.sora.sora.common.model.param.CommentParam;
import com.sora.sora.common.model.param.ReplyParam;
import com.sora.sora.common.model.vo.CommentVO;
import com.sora.sora.common.model.vo.ReplyVO;

import java.util.List;

public interface CommentService {

    CommentVO comment(CommentParam commentParam);

    ReplyVO reply(ReplyParam replyParam);

    boolean deleteComment(int id, int uid);

    boolean deleteReply(int id, int uid);

    List<CommentVO> listAllCommentAscTime(String articleType, int articleId, int page, int limit);

    List<CommentVO> listAllCommentDescTime(String articleType, int articleId, int page, int limit);

    List<ReplyVO> listAllReplyAscTime(int commentId, int page, int limit);

    List<ReplyVO> listAllReplyDescTime(int commentId, int page, int limit);

    int countReply(int commentId);

    int countComment(String artcileType, int artcileId);
}
